package com.jevons.geo_lib.geo_op;

import com.mapbox.geojson.Feature;

import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * Copyright 2020 JxGIS
 *
 * @file GeoOpSaveResult
 * @auth linaisheng
 * Created on 2023/12/28.
 * Description：
 */
public class GeoOpSaveResult {

    public static final String OP_SAVE_QIEGE_META_DATA = "qiegeMetaData";

    Set<String> deleteFeatureIds = new HashSet<>();

    List<Feature> originFeatures;

    Map<String, Object> resultMetaData = new HashMap<>();

    public void setOriginFeatures(List<Feature> originFeatures) {
        this.originFeatures = originFeatures;
    }

    public List<Feature> getOriginFeatures() {
        return originFeatures;
    }

    public Set<String> getDeleteFeatureIds() {
        return deleteFeatureIds;
    }


    public void addResultMetaData(String key, Object data) {
        resultMetaData.put(key, data);
    }

    public Object getResultMetaData(String key) {
        return resultMetaData.get(key);
    }

}